package com.network.vo;

public class DeptVo {
    private Long id;
    private String name;
    //父类机构 名称
    private String parentName;
    private String createBy;
//    private List<RoleVo> roles;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

//    @Autowired
//    private JdbcTemplate jdbcTemplate;
//    public List<RoleVo> getRoles()
//    {
//        //获取机构下的所有角色
//        String sql="SELECT A.id,A.`name`,A.create_by as createBy from role_t as A LEFT JOIN role_dept_t as B on A.id=B.role_id  where B.id=?";
//        return jdbcTemplate.query(sql,new Object[]{id},new BeanPropertyRowMapper<>(RoleVo.class));
//    }

}
